package cc.loac.heba.pojo;

import java.util.Date;

public class Message {
    private Integer messageId;
    private String sendFromEmail;
    private String email;
    private Date createTime;
    private String type;
    private Integer heiId;
    private String isRead;

    public static final String TYPE_FOLLOW = "follow";
    public static final String TYPE_LIKE = "like";
    public static final String TYPE_COMMENT = "comment";
    public static final String TYPE_REPLY = "reply";

    public static final String READ_TRUE = "true";
    public static final String READ_FALSE = "false";

    // 以下为 User 字段
    private String username;

    // 以下为 Hei 字段
    private String title;


    public Integer getMessageId() {
        return messageId;
    }

    public void setMessageId(Integer messageId) {
        this.messageId = messageId;
    }

    public String getSendFromEmail() {
        return sendFromEmail;
    }

    public void setSendFromEmail(String sendFromEmail) {
        this.sendFromEmail = sendFromEmail;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getHeiId() {
        return heiId;
    }

    public void setHeiId(Integer heiId) {
        this.heiId = heiId;
    }

    public String getIsRead() {
        return isRead;
    }

    public void setIsRead(String isRead) {
        this.isRead = isRead;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public String toString() {
        return "Message{" +
                "messageId=" + messageId +
                ", sendFromEmail='" + sendFromEmail + '\'' +
                ", email='" + email + '\'' +
                ", createTime=" + createTime +
                ", type='" + type + '\'' +
                ", heiId=" + heiId +
                ", isRead='" + isRead + '\'' +
                ", username='" + username + '\'' +
                ", title='" + title + '\'' +
                '}';
    }
}
